import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import 'ant-design-vue/dist/reset.css';
import Antd from 'ant-design-vue';
import '@/assets/base.scss'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');
import { parseTime } from '@/utils/Index';


import App from './App.vue'
import router from './router'

const app = createApp(App);


const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);

app.config.globalProperties.PicPrefixUrl = import.meta.env.Ex_Img_Url;
app.config.globalProperties.UploadUrl = import.meta.env.Ex_Upload_Url;
app.config.globalProperties.parseTime = parseTime;


app.use(Antd);
app.use(pinia);
app.use(router);

app.mount('#app')
